package com.cy.cuiyang_admin.service.impl;


import com.cy.cuiyang_admin.dao.EmpDao;
import com.cy.cuiyang_admin.pojo.BzIndexStatiDto;
import com.cy.cuiyang_admin.pojo.BzIndexStatiPmDto;
import com.cy.cuiyang_admin.pojo.EmpEntity;
import com.cy.cuiyang_admin.service.EmpService;
import com.cy.cuiyang_admin.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpDao empDao;

    @Override
    public int insert(EmpEntity empEntity) {
        return empDao.insert(empEntity);
    }

    @Override
    public int deleteById(int id) {
        return empDao.deleteById(id);
    }

    @Override
    public int updateById(EmpEntity empEntity) {
        return empDao.updateById(empEntity);
    }

    @Override
    public List<EmpEntity> select() {
        return empDao.select();
    }

    @Override
    public List<BzIndexStatiDto> queryBzIndexStati() {
        return empDao.queryBzIndexStati();
    }

    @Override
    public List<BzIndexStatiPmDto> queryBzIndexStatiPm() {
        return empDao.queryBzIndexStatiPm();
    }

    @Override
    public EmpEntity selectById(int id) {
        return empDao.selectById(id);
    }
    @Override
    public List<EmpEntity> queryAll() {
        return empDao.queryAll();
    }

}
